<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<?php $this->load->view('admin/head'); ?>
</head>
<body>
<div id="wrapper">
	<?php $this->load->view('admin/header'); ?>
	<?php $this->load->view('admin/hmenu');?>
	<div id="content-container">
	<?php 
		$margin_left = "";
		if (isset($left)) {
            $classLeft = 'class-left';
            if(isset($content_left) && $content_left == 'report')
                $classLeft = "class-left-report";
			echo '<div id="content-left" class="'.$classLeft.'">';
			$margin_left = "content-margin-left";
			$this->load->view($left);	
			echo '</div>'; 
		}
	?>
    <?php 
    	$margin_right = "";
		if (isset($right)) {
			echo '<div id="content-right">';
			$margin_right = "content-margin-right";
			$this->load->view($right);
			echo '</div>';	
		}
	?>
        <div id="content-main" class="<?php echo $margin_left.'  '.$margin_right;?>">
			<?php $this->load->view($main); ?>
	   </div>
       <div style="clear:both;"></div>
	</div>
	<?php $this->load->view('admin/footer'); ?>
</div>
</body>
</html>